Skip to content

Conversation

@sashanksilwal
Copy link

Summary

The sky clearness index binning in Perez_v3.py uses strict inequalities (< and >), leaving exact boundary values (1.065, 1.230, 1.500, 1.950, 2.800, 4.500, 6.200) unhandled. For these values, intClearness is never assigned.

For example, if PerezClearness == 1.065:

  • < 1.065 → False
  • > 1.065 and < 1.230 → False
  • intClearness is never assigned

Replaced with an elif chain using single comparisons to form a gapless partition matching the standard Perez epsilon bins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant